package com.xiaoba.shoppingcart.feign;

import com.xiaoba.common.core.domain.Result;
import com.xiaoba.common.security.annotation.RequiresPermissions;
import com.xiaoba.product.domain.PmsSkuInfo;
import com.xiaoba.product.domain.SkuInfo;
import com.xiaoba.search.domain.SkuEsModel;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: Gd
 * @package: com.xiaoba.shoppingcart.feign
 * @Project: XiaoBa
 * @Name: ProductFeignService
 * @Date: 2024-06-07 21:14
 */
@FeignClient(contextId = "productFeignService", value = "xiaoba-product")
public interface ProductFeignService {

    @RequiresPermissions("product:skuInfo:list")
    @GetMapping("/skuInfo/listByskuId/{skuId}")
    public Result<SkuInfo> listByskuId(@PathVariable("skuId") Long skuId);
}
